@extends('Home.Layout.layout')

@section('con')
				<div class="col-md-3 col-md-offset-4">
					@if (count($errors) > 0)
		        	    <div class="alert alert-danger">
		        	        <ul>
		        	            @foreach ($errors->all() as $error)
		        	                <li>{{ $error }}</li>
		        	            @endforeach
		        	        </ul>
		        	    </div>
		        	@endif
		        	
					<form action="{{url('/Home/doregist')}}" method="post">
					<div class="account-top heading">
						<h3>注册</h3>
					</div>
					<div class="address">
						用户名
						<input name="username" type="text" placeholder="用户名">
					</div>
					<div class="address">
						密码
						<input name="password" type="text" placeholder="密码" >
					</div>
					<div class="address">
						手机号
						<input name="phone" type="text" placeholder="手机号">
					</div>
					<div class="address">
						邮箱
						<input name="email" type="text" placeholder="邮箱">
					</div>
			
					<div class="address">
					  <div  class="col-xs-6">
					    <input type="text" name="vcode" class="form-control" placeholder="验证码">
					  </div>
					  <div class="col-xs-6">
					    <img src="/Vcode" onclick="this.src=this.src+'?a=1'" alt="">
					  </div>

					</div>
					<br><br>

					 <div class="address new">
						<button type="submit" class="btn btn-default" style="color:8C2830">注册</button>
					</div>
					{{csrf_field()}}
					</form>
				</div>

@endsection